<h2>Categories</h2>


<ul class="editlist">
	<% @categories.each do |category| %>
	<li><span class="actions"><%= link_to('edit', :controller => 'admin/categories', :action => 'edit', :id => category)%> <%= link_to('delete', :controller => 'admin/categories', :action => 'destroy', :id => category)%></span><%= link_to(category.title, category_path(category))%></li>
	<% end %>
</ul>

<p><%= link_to('New category', :controller => 'admin/categories', :action => 'new')%></p>